package com.neu.af.dataFilter.service;

import com.neu.af.dataFilter.entity.Rule;
import com.neu.af.dataFilter.entity.Tag;
import com.neu.af.dataFilter.entity.TagRuleAlarm;

import java.util.List;
import java.util.Map;

public interface TagRuleAlarmService {

    int insert(TagRuleAlarm tagRuleAlarm);

    int update(TagRuleAlarm tagRuleAlarm);

    int delete(String id);

    TagRuleAlarm getById(String id);

    List<TagRuleAlarm> getAll();

    List<TagRuleAlarm> getAllByFilter(Map<String, Object> map);

    int deleteAll();

    // 根据tag，rule生成/更新tag
    void generateTagRuleAlarm();

    TagRuleAlarm getByTagName(String tagName);

    void insertOne(Tag t, List<Rule> rules_one, List<Rule> rules_two);
}
